package cn.helios.controller;

import cn.helios.ajaxresult.Ajaxresult;
import cn.helios.domian.Store;
import cn.helios.service.IStoreService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StoreController {
    @Autowired
    private IStoreService storeService;


    @PostMapping("/store")
    public Ajaxresult add(@RequestBody Store store){
      return storeService.add(store);
    }
}
